<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //   参数then   response
        //   数据then   data

        //原生JavaScript  不需要引入任何东西
        fetch('./00 data.json')
            .then(function (response) {
                //固定写法 
                console.log(response)
                //resolve
                return response.json();
            })
            .then(function (myJson) {
                console.log(myJson);
            })
            .catch(function () {
                //reject
            });
    </script>
</head>

<body>

</body>

</html>